<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>列表渲染</title>
</head>

<body>
    <div id="app">
        <ul>
            <li v-for="value in object">
                {{ value }}
            </li>
        </ul>

        <ul>
            <li v-for="(value, name) in object">
                {{ name }}: {{ value }}
            </li>
        </ul>

        <ul>
            <li v-for="(value, name, index) in object">
                {{ index }}. {{ name }}: {{ value }}
            </li>
        </ul>
    </div>

    <script type="module">
        import Vue from '../vue.esm.browser.js'

        const app = new Vue({
            el: '#app',
            data: {
                object: {
                    title: 'How to do lists in Vue',
                    author: 'Jane Doe',
                    publishedAt: '2016-04-10'
                }
            }
        })
    </script>
</body>

</html>